package org.lanqiao.ssm.facede.auth.facede.impl;

import org.lanqiao.ssm.common.core.facede.base.BaseManagerFacede;
import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.facede.auth.facede.ResourceManagerFacedeI;
import org.lanqiao.ssm.facede.auth.model.Resource;
import org.lanqiao.ssm.facede.auth.service.ResourceServiceI;
import org.springframework.stereotype.Component;

@Component("resourceManagerFacede")
public class ResourceManagerFacedeImpl extends
		BaseManagerFacede<Resource, String> implements
		ResourceManagerFacedeI { 
	@javax.annotation.Resource
	private ResourceServiceI resourceService;

	@Override
	public BaseServiceI<Resource, String> getService() {
		return resourceService;
	}

	@Override
	public int remove(String id) {
		
		return resourceService.remove(id);
	}

	@Override
	public int add(Resource r) {
		
		return resourceService.add(r);
	}

	@Override
	public int edit(Resource r) {
		
		return resourceService.edit(r);
	}

}
